package test;

import org.junit.jupiter.api.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import redis.clients.jedis.Jedis;
import stu.lee.service.RedisService;

class InvalidException extends Exception {

}

public class MyException {
    @Test
    public void get() {
//
        ApplicationContext app = new ClassPathXmlApplicationContext("applicationContext.xml");
        RedisService redisService = (RedisService) app.getBean("redisService");
        System.out.println(redisService.ping());
    }
}
